﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HiLand.Utility.IO;

namespace DotNET4Study
{
    class FileFormatStudy
    {
        public static void Execute()
        {
            Console.WriteLine("文件{0}的格式为{1}", "utf8.txt", FileHelper.GetFileEncoding("FileFormat/utf8.txt"));
            Console.WriteLine("文件{0}的格式为{1}", "unicode.txt", FileHelper.GetFileEncoding("FileFormat/unicode.txt"));
            Console.WriteLine("文件{0}的格式为{1}", "ansi.txt", FileHelper.GetFileEncoding("FileFormat/ansi.txt"));
        }
    }
}
